//============ com.pengesoft.domain.DeviceList =============
import {DataPacket, NorDataList} from 'pengesoft-ng-lib';

export class DeviceList extends NorDataList<Device> {
    constructor() {
        super();
    }
}


//============ com.pengesoft.domain.Device =============
export class Device extends DataPacket {
    HouseId: string;
    CreateTime: Date;
    Name: string;
    UpdateTime: Date;
    Id: string;
    State: number;
    constructor(opts: {
        HouseId?: string;
        CreateTime?: Date;
        Name?: string;
        UpdateTime?: Date;
        Id?: string;
        State?: number;
    } = {}) {
        super();
        this.HouseId = opts.HouseId || '';
        this.CreateTime = opts.CreateTime || null!;
        this.Name = opts.Name || '';
        this.UpdateTime = opts.UpdateTime || null!;
        this.Id = opts.Id || '';
        this.State = opts.State || 0;
    }
}

